package com.ysd.lis.entity.sta;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ysd.lis.entity.BaseEntityJpa;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.sql.Timestamp;

/**
 * <p>
 * cold_chain.t_menu
 * </p>
 *
 * @author Peng
 * @since 2025-01-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("STA_MODEL")
@Entity
@Table(name = "STA_MODEL")
public class StaModel extends BaseEntityJpa {

    private static final long serialVersionUID = 1L;
    @TableField("MODEL_CODE")
    @Column(name = "MODEL_CODE")
    private String modelCode;

    @TableField("MODEL_NAME")
    @Column(name = "MODEL_NAME")
    private String modelName;

    @TableField("DESCRIPTION")
    @Column(name = "DESCRIPTION")
    private String description;

    @TableField("SEQ")
    @Column(name = "SEQ")
    private Integer seq;


    //varchar(max)实例
//    @Column(name = "DESCRIPTION1",columnDefinition = "varchar(max)")
//    private String description1;

//    @Column(name = "SD",columnDefinition = "decimal(19, 6)")
//    private Double sd;
//
//
//    @DateTimeFormat(pattern = "yyyy-MM-dd")
//    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
//    @Column(name = "ASSIGN_DATE",columnDefinition = "datetime")
//    @TableField("ASSIGN_DATE")
//    private Timestamp assignDate;
//
//    @JsonFormat(pattern = "yyyy-MM-dd", timezone="GMT+8")
//    @TableField(fill = FieldFill.UPDATE)
//    @Column(name = "QC_DATE")
//    private Timestamp qcDate;

//    @Transient
//    @TableField(exist = false)
//    private String aaa;
}
